Testing of autonomous nervous system function